import { all } from "redux-saga/effects";
import aclSaga from "./acl/sagas";
import dataSyncSaga from "./data-sync/sagas";
import prodInboundSaga from "./prod-inbound/sagas";
import saleOutboundSaga from "./sale-outbound/sagas";
import tmpPalletSaga from "./tmp-pallet/sagas";
import frmPalletSaga from "./frm-pallet/sagas";
import userProfileSaga from "./user-profile/sagas";
import unpackSaga from "./unpack/sagas";
import transferInSaga from "./transfer-in/sagas";
import transferOutSaga from "./transfer-out/sagas";
import otherInSaga from "./other-in/sagas";
import otherOutSaga from "./other-out/sagas";
import orderMoveSaga from "./order-move/sagas";
import moveDirectlySaga from "./move-directly/sagas";
import stocktakingSaga from "./stocktaking/sagas";
import warehouseQuerySaga from "./warehouse-query/sagas";

export default function* rootSaga() {
  yield all([
    ...aclSaga,
    ...dataSyncSaga,
    ...prodInboundSaga,
    ...saleOutboundSaga,
    ...tmpPalletSaga,
    ...frmPalletSaga,
    ...userProfileSaga,
    ...unpackSaga,
    ...transferInSaga,
    ...transferOutSaga,
    ...otherInSaga,
    ...otherOutSaga,
    ...orderMoveSaga,
    ...moveDirectlySaga,
    ...stocktakingSaga,
    ...warehouseQuerySaga
  ]);
}
